Transfers the control of the program to a subroutine, a function, or a DLL procedure.
プログラムの制御を、サブルーチン、関数、DLL プロシージャーなどに渡します。
[Call] Name [Parameter]
[Call] Name [Parameter]
Name: Name of the subroutine, the function, or the DLL that you want to call
Name: 呼び出すサブルーチン、関数、DLL の名前。
Parameter: Parameters to pass to the procedure. The type and number of parameters is dependent on the routine that is executing.
Parameter: プロシージャーに渡すパラメータ。どのようなパラメータをいくつ渡すかは、実行するルーチンに依存します。
![]() | A keyword is optional when you call a procedure. If a function is executed as an expression, the parameters must be enclosed by brackets in the statement. If a DLL is called, it must first be specified in the Declare-Statement.
プロシージャー呼び出し時のキーワードは省略可能です。関数を表式の一部として実行する場合、ステートメント中に記述するパラメータはかっこで囲む必要があります。DLL を呼び出す場合は、最初に Declare ステートメント による宣言をしておく必要があります。 |
Sub ExampleCall
Sub ExampleCall
Dim sVar As String
Dim sVar As String
sVar = "Office"
sVar = "Star Suite"
Call f_callFun sVar
Call f_callFun sVar
end Sub
end Sub
Sub f_callFun (sText as String)
Sub f_callFun (sText as String)
Msgbox sText
Msgbox sText
end sub
end sub